TiltFiveGodot4 is GDExtension for the Godot 4 engine to connect to the Tilt Five system. It extends Godot's XRInterface and adds T5 Nodes to handle the creation of the XR rigs in the scene.
Github: GodotVR/TiltFiveGodot4
gdtiltfive_gdscript.zip
or gdtiltfive_csharp.zip
depending on which scripting language you want to use.AssetLib
tab select the Import...
button.zip
file you downloaded and press Open
Ignore asset root
and then click the Install
button.Project->Project Settings...
menu option and enable the Tilt Five
plugin. XR->Shaders
option. T5
in the search field. Select T5Manager
and click the Create
button.T5Gameboard
node. T5Manager
in the scene tree and look at it's property inspector. Set the Start Location
property to the T5Gameboard node you added.T5Gameboard
in the scene tree and look at it's property inspector. Set the Content Scale
property to 10
.MeshInstance3D
and select the BoxMesh
Your scene tree should now look something like this.
At this point you should be able to run the scene, put on your Tilt Five glasses and see the cube on the board.
The plugin will create and manage the connection between the Tilt Five hardware and one or more XR rigs it will create in your root scene. An XR rig is just a regular Godot scene with a specific layout of required nodes that map to parts of the Tilt Five hardware. Where and how each XR rig is created is controlled by a T5Manager
node in the root scene.
The default XR rig T5XRRig
is found in res://addons/tiltfive/scenes/
folder of your project.
The XR rig has the following required layout of
SubViewport
node at the root node of the hierarchy. This is the viewport that your world will be rendered to for the pair of glasses attached to this rig.T5Origin3D
node that is a child of T5XRRig
node. It maps the center of the Tilt Five gameboard to a location in world coordinates.T5Camera3D
node that is a child of the T5Origin3D
node. It will track the location of the users head relative to the origin.T5Origin3D
node. It will track the location of the Tilt Five wand relative to the origin.It's very likely that you will eventually want attach things like colliders, raycasters or custom scripts to the XR rig nodes for your particular Tilt Five application. You can do this by inheriting from T5XRRig.tcsn
to get all the required nodes in the correct layout.
The main scene should have a T5Manager
node. It is a basic manager that will create one XR rig for each pair of Tilt Five glasses that is connected to the computer. T5Manager
has a couple of properties to customize it's behavior.
T5XRRig
. T5Gameboard
node in the scene. The manager will use this to set the initial location and content scaling of the T5Origin3D
in the XR rig it creates. If this field is blank the manager will set the 'T5Origin3D' to the world origin.The T5Gameboard
node is useful for visualizing the size of 3D content on the physical gameboard.
The gameboard has several properties.
When the T5Gameboard
node is linked in the T5Manager
the manager will use the location and content scale of the gameboard to set up the T5Origin3D
node of the XR rig. This can be useful for setting player start locations.